package com.bw.module_house.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.BaseResponse
import com.bw.module_house.model.HouseEntity
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
/**
 * 智慧园区-03-房源信息V1.1-史建军-20250514
 */
interface HouseApiService:BaseApiServer {
    @GET("/api/properties")
    suspend fun getHouseList():BaseResponse<List<HouseEntity>>
    @GET("/api/properties/region/{regionId}")
    suspend fun getHouseListById(@Path("regionId")regionId:Int):BaseResponse<List<HouseEntity>>
    @GET("/api/properties/search")
    suspend fun getHouseListSearch(@Query("keyword") keyword:String):BaseResponse<List<HouseEntity>>
}